package com.example.encrypt.controller;

import com.example.encrypt.annotation.Decode;
import com.example.encrypt.annotation.Encrypt;
import com.example.encrypt.utils.AESUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: wenwen
 * @date: 2020/3/3 15:29
 * @version: 1.0
 */
@RestController
public class TestController {


    @GetMapping
    @Encrypt
    public String test_1(  @Decode String s) {
        System.out.println(s);
//        String string = AESUtils.getDecryptString(s);
//        return AESUtils.getEncryptString(string);
        return s;
    }

}
